

<%@ page import="cartoonsface.Cartoon" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'cartoon.label', default: 'Cartoon')}" />
        <title>Cartoons Face</title>
    </head>
    <body>
        <div class="body">
        <div class="all">
        	 <div align="center"><img src="${resource(dir:'images',file:'logo.png')}" alt="Grails" border="0" /></div>
        	<div class="mainTop">Who am I in 3D games?</div>
        	
        	<div class="text">
        		Select one image (whit your face) and click on Load Image! (".jpg" only!)
        	</div>
        	
            <g:if test="${flash.message}">
            	<div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${cartoonInstance}">
            <div class="errors">
                <g:renderErrors bean="${cartoonInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="generate"  enctype="multipart/form-data">
                <div class="main">
                    <input type="file" id="foto" name="foto" />
                </div>
                <div class="main2">
                	<g:submitButton name="generate" class="button" value="${message(code: 'nada', default: 'Load Image')}" />
                </div>
            </g:form>          
            <div class="bottom">A product developed by Friends DNS.</div>
        </div>
     </div>
    </body>
</html>
